import request from '../utils/Request';
const contentTypeForm = 'application/json;charset=UTF-8';
let headers ={
    'Content-Type':contentTypeForm,
    'X-Requested-With':'XMLHttpRequest',
}
const studentApi={
    loadList(page,pageSize,specificationVo) {
        return request({
            url: '/specification/loadList.do',
            method: 'post',
            params:{
                page,
                pageSize
            },
            data:specificationVo
        })
    },
    add(specName,specificationOption){
        return request({
            url:'/specification/add.do',
            method:'post',
            headers,
            params:{
                specName,
            },
            data:specificationOption
        })
    }
}


export default studentApi
